<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="../../css/bootstrap.min.css">
<link rel="stylesheet" href="../../css/font-awesome.min.css">
<link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
<link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" href="../../css/main.css">
<script src="../../libs/jquery.min.js"></script>
<script src="../../plugins/layer/layer.js"></script>
<script src="../../libs/bootstrap.min.js"></script>
<script src="../../libs/vue.min.js"></script>
<script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
<script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
<script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
<script src="../../js/common.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<a v-if="hasPermission('base:limitspeed:save')" class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			<a v-if="hasPermission('base:limitspeed:update')" class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			<a v-if="hasPermission('base:limitspeed:delete')" class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
				<div class="form-group">
			   	<div class="col-sm-2 control-label">左线/右线</div>
			   	<div class="col-sm-10">
			   	 <select id='limitspeed_linename' name='limitspeed_linename' class="form-control" >
				   		<option value ="L" >左线</option>
				   		<option value ="R" >右线</option>
				   	 </select>
			    </div>
			    </div>
				<div class="form-group">
			     	<div class="col-sm-2 control-label">开始大端</div>
			    	<div class="col-sm-10">
				   	 <select id='beginpoint_dk' name='beginpoint_dk' class="form-control" >
				   		<option value ="13000" >DK_13</option>
				   		<option value ="14000" >DK_14</option>
				   		<option value ="15000" >DK_15</option>
				   		<option value ="16000" >DK_16</option>
				   		<option value ="17000" >DK_17</option>
				   		<option value ="18000" >DK_18</option>
				   		<option value ="19000" >DK_19</option>
				   		<option value ="20000" >DK_20</option>
				   		<option value ="21000" >DK_21</option>
				   		<option value ="22000" >DK_22</option>
				   		<option value ="23000" >DK_23</option>
				   		<option value ="24000" >DK_24</option>
				   		<option value ="25000" >DK_25</option>
				   		<option value ="26000" >DK_26</option>
				   		<option value ="27000" >DK_27</option>
				   		<option value ="28000" >DK_28</option>
				   		<option value ="29000" >DK_29</option>
				   		<option value ="30000" >DK_30</option>
				   		<option value ="31000" >DK_31</option>
				   	 </select>
			   	   </div>
			   	</div>
			   	<div class="form-group">
			   		<div class="col-sm-2 control-label">开始子端</div>
				   	<div class="col-sm-10">
				   	 <select id='beginpoint_dk_s' name='beginpoint_dk_s' class="form-control" >
				   		<option value ="0" >0</option>
				   		<option value ="100" >100</option>
				   		<option value ="200" >200</option>
				   		<option value ="300" >300</option>
				   		<option value ="400" >400</option>
				   		<option value ="500" >500</option>
				   		<option value ="600" >600</option>
				   		<option value ="700" >700</option>
				   		<option value ="800" >800</option>
				   		<option value ="900" >900</option>
				   	 </select>
				    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">终止大段</div>
			   	<div class="col-sm-10">
			   	<select id='endpoint_dk' name='endpoint_dk' class="form-control" >
			   		<option value ="13000" >DK_13</option>
			   		<option value ="14000" >DK_14</option>
			   		<option value ="15000" >DK_15</option>
			   		<option value ="16000" >DK_16</option>
			   		<option value ="17000" >DK_17</option>
			   		<option value ="18000" >DK_18</option>
			   		<option value ="19000" >DK_19</option>
			   		<option value ="20000" >DK_20</option>
			   		<option value ="21000" >DK_21</option>
			   		<option value ="22000" >DK_22</option>
			   		<option value ="23000" >DK_23</option>
			   		<option value ="24000" >DK_24</option>
			   		<option value ="25000" >DK_25</option>
			   		<option value ="26000" >DK_26</option>
			   		<option value ="27000" >DK_27</option>
			   		<option value ="28000" >DK_28</option>
			   		<option value ="29000" >DK_29</option>
			   		<option value ="30000" >DK_30</option>
			   		<option value ="31000" >DK_31</option>
			   	 </select>
			   	 </div>
			   	</div>
			   	<div class="form-group">
			   		<div class="col-sm-2 control-label">终止大段</div>
			   		<div class="col-sm-10">
					   	 <select id='endpoint_dk_s' name='endpoint_dk_s' class="form-control" >
					   		<option value ="0" >0</option>
					   		<option value ="100" >100</option>
					   		<option value ="200" >200</option>
					   		<option value ="300" >300</option>
					   		<option value ="400" >400</option>
					   		<option value ="500" >500</option>
					   		<option value ="600" >600</option>
					   		<option value ="700" >700</option>
					   		<option value ="800" >800</option>
					   		<option value ="900" >900</option>
					   	 </select>
			   	 	</div>
				</div>
				<div class="form-group">
			   	<div class="col-sm-2 control-label">限制类型 </div>
			   	<div class="col-sm-10">
			   	<select id='limitspeed_type' name='limitspeed_type' class="form-control" >
			   		<option value ="0" >限速</option>
			   		<option value ="1" >禁止</option>
			   	 </select>
			     
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">限速|限行</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="limitspeed.memo" placeholder="限速|限行"/>
			    </div>
			</div>
			
			<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="../../js/modules/base/limitspeed.js"></script>
</body>
</html>